<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!Doctype html>
<html>
<head>
    <title>试题</title>
    <link rel="stylesheet" type="text/css" href="../static/css/question.css">
    <script type="text/javascript" src="../js/jq181.js"></script>
    <script type="text/javascript">
        var prevQId = <%= request.getAttribute("prevQId") %>,
            prevAnswer = <%= request.getAttribute("prevAnswer") != null ? "\"" + request.getAttribute("prevAnswer") + "\"" : null %>,
            qId = <%= request.getAttribute("qId") %>;
    </script>
    <script type="text/javascript" src="../static/js/user/question.js"></script>
</head>
<body>
<div id="content">
    <div id="questionTxt">
        <%= request.getAttribute("qId") + ". " + request.getAttribute("question") %>
    </div>
    <form id="answer-wrapper" action="" method="get">
        <div id="selection-wrapper">
            <%= request.getAttribute("qId") != null ? "<input type=\"hidden\" name=\"qId\" value=\"" +  request.getAttribute("qId") +"\">" : ""%>
            <label><input name="answer" value="A" type="radio"><span>没什么不同</span></label>
            <label><input name="answer" value="B" type="radio"><span>备胎与正式的区别</span></label>
            <label><input name="answer" value="C" type="radio"><span>我什么都不知道</span></label>
            <label><input name="answer" value="D" type="radio"><span>我先去吃饭</span></label>
        </div>
        <div class="submit-wrapper">
            <button id="submit" type="submit">保存</button>
        </div>
    </form>
</div>
</body>
</html>